package com.xiao.permission_system.mapper;

import com.xiao.permission_system.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import cn.xiao.permission_system.common.MyMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色权限关联表 Mapper 接口
 * </p>
 *
 * @author beth
 * @since 2019-10-26
 */
@Repository
public interface RolePermissionMapper extends MyMapper<RolePermission> {
     /**
      * 分页查询
      * @param page 分页信息
      * @param wrapper 查询条件
      * @return
      */
      IPage<RolePermission> selectPage(Page<RolePermission> page, @Param(Constants.WRAPPER) Wrapper<RolePermission> wrapper);
}
